Resolve unpinned dependency versions in the validmind-lib#469
Resolve unpinned dependency versions in the validmind-lib#469AnilSorathiya wants to merge 3 commits intomainfrom
Conversation
PR SummaryThis PR makes several functional changes to improve reliability and workaround external library bugs. First, the GitHub Actions workflow for dependency testing has been updated to use official actions for installing Poetry and uv, replacing manual installation commands. This ensures reliable and reproducible setup by pinning Poetry to version 2.0.1 and enabling cache for uv. Further, the notebook sample now explicitly installs a specific version of the "langgraph" package alongside the main package, ensuring better compatibility. In the dependency lock file and pyproject.toml, version pins for multiple dependencies (e.g., ipywidgets, polars, python-dotenv, scikit-learn, seaborn, evaluate, tiktoken, tqdm, anywidget, beautifulsoup4, pycocoevalcap, scipy, statsmodels, langdetect, arch, etc.) have been modified to enforce more predictable behavior and avoid breaking changes from upstream updates. Several modifications in test files address issues stemming from bugs in the evaluate library (v0.4.3), particularly around the toxicity and regard metrics. Workarounds bypass the compute() method in favor of directly invoking classifier functions. These updates include conversion of numpy strings to Python strings to avoid type issues, dynamic calculation of expected figure counts in regard tests, and improved error messages. Minor adjustments in the package source (e.g., in init.py and scorers modules) expose new module naming while still supporting backward compatibility. Test Suggestions
|
|
Let's close this PR and open a new one once we get more clear requirements around individual dependencies. |
Pull Request Description
What and why?
Several dependencies within the
validmind-libsrepository currently lack explicit version assignments.This task involves defining fixed versions for these libraries to ensure environment stability and consistent system functionality.
Other changes:
https://github.com/validmind/validmind-library/actions/runs/21358443350/job/61483188477
How to test
What needs special review?
Dependencies, breaking changes, and deployment notes
Release notes
Checklist